Package com.netscape.cms.servlet.common
Class CMSRequest
java.lang.Object
com.netscape.cms.servlet.common.CMSRequest
This represents a user request.
- Version:
- $Revision$, $Date$
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetError()
getExtData
(String type) javax.servlet.http.HttpServletRequest
javax.servlet.http.HttpServletResponse
javax.servlet.ServletConfig
javax.servlet.ServletContext
void
setError
(EBaseException error) void
void
setErrorDescription
(String descr) void
setExtData
(String type, String value) void
setHttpParams
(ArgBlock httpParams) set the HTTP parametersvoid
setHttpReq
(javax.servlet.http.HttpServletRequest httpReq) set the HTTP Request object associated with this sessionvoid
setHttpResp
(javax.servlet.http.HttpServletResponse httpResp) set the HTTP Response object which is used to create the HTTP response which is sent back to the uservoid
set default CMS status according to Request status.void
void
setRequest
(Request request) set the Request aobject associated with this sessionvoid
void
void
setServletConfig
(javax.servlet.ServletConfig servletConfig) set the servlet configuration.void
setServletContext
(javax.servlet.ServletContext servletContext) void
Set request status.
-
Field Details
-
UNAUTHORIZED
-
SUCCESS
-
PENDING
-
SVC_PENDING
-
REJECTED
-
ERROR
-
EXCEPTION
-
-
Constructor Details
-
CMSRequest
public CMSRequest()Constructor
-
-
Method Details
-
setHttpParams
set the HTTP parameters -
setRequest
set the Request aobject associated with this session -
setHttpReq
public void setHttpReq(javax.servlet.http.HttpServletRequest httpReq) set the HTTP Request object associated with this session -
setHttpResp
public void setHttpResp(javax.servlet.http.HttpServletResponse httpResp) set the HTTP Response object which is used to create the HTTP response which is sent back to the user -
setServletConfig
public void setServletConfig(javax.servlet.ServletConfig servletConfig) set the servlet configuration. The servlet configuration is read from the WEB-APPS/web.xml file under the <servlet> XML definition. The parameters are delimited by init-param param-name/param-value options as described in the servlet documentation. -
setServletContext
public void setServletContext(javax.servlet.ServletContext servletContext) -
setStatus
Set request status.- Parameters:
status
- request status. Allowed values are UNAUTHORIZED, SUCCESS, REJECTED, PENDING, ERROR, SVC_PENDING- Throws:
IllegalArgumentException
- if status is not one of the above values
-
setError
-
setError
-
setErrorDescription
-
setResult
-
setResult
-
getHttpParams
-
getHttpReq
public javax.servlet.http.HttpServletRequest getHttpReq() -
getHttpResp
public javax.servlet.http.HttpServletResponse getHttpResp() -
getServletConfig
public javax.servlet.ServletConfig getServletConfig() -
getServletContext
public javax.servlet.ServletContext getServletContext() -
getRequest
-
getStatus
-
getError
-
getErrorDescr
-
getResult
-
getResult
-
setReason
-
getReason
-
setExtData
-
getExtData
-
getPolicyMessages
-
setIRequestStatus
set default CMS status according to Request status.- Throws:
EBaseException
-